import requset from "../utils/requset"

// 详情页商品数据
export let partList = (id) => {
    return requset({
        url: "/goods?id="+id,
        method: "get",
    })
}


// 加入购物车
export let addShop = (id,num) => {
    return requset({
        url: "/member/cart",
        method: "post",
        data:{
            skuId:id,
            count:num
        }
    })
}

// 推荐
export let relevant = () => {
    return requset({
        url: "/goods/relevant",
        method: "get",
        params:{
            limit:16
        }
    })
}

